package com.shrcl.engineerprocess.domain;

import com.google.common.base.Objects;
import com.shrcl.engineerprocess.domain.CorpWeChatUser;
import com.shrcl.engineerprocess.domain.CorpWeChatUserDAO;
import com.shrcl.engineerprocess.domain.Engineer;
import com.shrcl.engineerprocess.domain.EngineerCostEstimation;
import com.shrcl.engineerprocess.domain.EngineerLevel;
import com.shrcl.engineerprocess.domain.EngineerLevelSalaryDAO;
import com.shrcl.engineerprocess.domain.EngineerNotifyReceiver;
import com.shrcl.engineerprocess.domain.EngineerProjectAssignment;
import com.shrcl.engineerprocess.domain.EngineerSeqConfig;
import com.shrcl.engineerprocess.domain.Notification;
import com.shrcl.engineerprocess.domain.TSCManCostCalc;
import com.shrcl.engineerprocess.domain.TSCPhase;
import com.shrcl.engineerprocess.domain.TSCServiceType;
import com.shrcl.engineerprocess.domain.TSCServiceTypeCategory;
import com.shrcl.engineerprocess.domain.TSCServiceTypeDefinition;
import com.shrcl.engineerprocess.domain.TSCServiceTypeOptionItem;
import com.shrcl.engineerprocess.domain.TSCServiceTypeOptionItemDAO;
import com.shrcl.engineerprocess.domain.TSCWorkLoadType;
import com.shrcl.engineerprocess.domain.TSCWorkLoadTypeDAO;
import com.shrcl.engineerprocess.domain.WorkSummary;
import com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl;
import com.shrcl.engineerprocess.domain.impl.EngineerNotifyReceiverImpl;
import com.shrcl.engineerprocess.domain.impl.EngineerSeqConfigImpl;
import com.shrcl.engineerprocess.domain.impl.TSCManCostCalcImpl;
import com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl;
import com.shrcl.engineerprocess.domain.impl.TSCProcessRoleImpl;
import com.shrcl.engineerprocess.domain.impl.TSCServiceTypeCategoryImpl;
import com.shrcl.engineerprocess.domain.impl.TSCServiceTypeDefinitionImpl;
import com.shrcl.engineerprocess.domain.impl.TSCServiceTypeImpl;
import com.shrcl.engineerprocess.domain.impl.WorkSummaryImpl;
import com.shrct.businessprocess.organization.RCOrganizationService;
import com.shrct.businessprocess.project.RCProject;
import edu.fudan.langlab.domain.security.AppFunction;
import edu.fudan.langlab.domain.security.AppFunctionService;
import edu.fudan.langlab.domain.updater.IUpgrader;
import edu.fudan.langlab.domain.updater.UpdateServie;
import edu.fudan.mylang.pf.BaseService;
import edu.fudan.mylang.pf.IGenericQuery;
import java.util.Collection;
import java.util.List;
import org.eclipse.xtext.xbase.lib.Functions.Function1;
import org.eclipse.xtext.xbase.lib.InputOutput;
import org.eclipse.xtext.xbase.lib.IterableExtensions;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("EngineerInitialize")
public class EngineerInitialize extends BaseService implements IUpgrader {
  @Autowired
  private RCOrganizationService rcOrganizationService;
  
  @Autowired
  private AppFunctionService appFunctionService;
  
  @Autowired
  private TSCWorkLoadTypeDAO workLoadTypeDAO;
  
  @Autowired
  private TSCServiceTypeOptionItemDAO serviceTypeOptionItemDAO;
  
  @Autowired
  private EngineerLevelSalaryDAO engineerLevelSalaryDAO;
  
  @Autowired
  private CorpWeChatUserDAO corpWeChatUserDAO;
  
  public void EngineerrFunction0419b() {
    InputOutput.<String>println("=============> Start update....");
    final Procedure1<AppFunction> _function = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      null, 
      "com.shrcl.engineerprocess.web.systemadmin", 
      "\u7CFB\u7EDF\u7BA1\u7406", _function);
    final Procedure1<AppFunction> _function_1 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.systemadmin", 
      "com.shrcl.engineerprocess.web.ShowOwnerTSKTaskManagementCommand", 
      "\u4EFB\u52A1\u7BA1\u7406", _function_1);
    final Procedure1<AppFunction> _function_2 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      null, 
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "\u5DE5\u7A0B\u5E08\u7BA1\u7406", _function_2);
    final Procedure1<AppFunction> _function_3 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerLevelManagementCommand", 
      "\u5DE5\u7A0B\u5E08\u7EA7\u522B\u7EF4\u62A4", _function_3);
    final Procedure1<AppFunction> _function_4 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerManagementCommand", 
      "\u5DE5\u7A0B\u5E08\u4FE1\u606F\u7EF4\u62A4", _function_4);
    final Procedure1<AppFunction> _function_5 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerCapabilityManagementCommand", 
      "\u5DE5\u7A0B\u5E08\u6280\u80FD\u6C34\u5E73\u7EF4\u62A4", _function_5);
    final Procedure1<AppFunction> _function_6 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerMonthlyCostManagementCommand", 
      "\u5DE5\u7A0B\u5E08\u85AA\u8D44\u7BA1\u7406", _function_6);
    final Procedure1<AppFunction> _function_7 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerTrainingManagementCommand", 
      "\u5DE5\u7A0B\u5E08\u57F9\u8BAD\u7BA1\u7406", _function_7);
    final Procedure1<AppFunction> _function_8 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowCertificationMaintainerByAgencyManagementCommand", 
      "\u8BC1\u4E66\u7EF4\u62A4\u4EBA\u5458\u914D\u7F6E", _function_8);
    final Procedure1<AppFunction> _function_9 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineermanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerCertificationCommand", 
      "\u8BC1\u4E66\u67E5\u8BE2", _function_9);
    final Procedure1<AppFunction> _function_10 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      null, 
      "com.shrcl.engineerprocess.web.costprocessmanagement", 
      "TSC\u9884\u7B97\u7BA1\u7406", _function_10);
    final Procedure1<AppFunction> _function_11 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.costprocessmanagement", 
      "com.shrcl.engineerprocess.web.ShowServiceRequestFormManagementCommand", 
      "TSC\u9884\u7B97\u7533\u8BF7\u7BA1\u7406", _function_11);
    final Procedure1<AppFunction> _function_12 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      null, 
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "\u670D\u52A1\u9879\u76EE\u7BA1\u7406", _function_12);
    final Procedure1<AppFunction> _function_13 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerProjectManagementCommand", 
      "\u6240\u6709\u670D\u52A1\u9879\u76EE", _function_13);
    final Procedure1<AppFunction> _function_14 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowMyEngineerProject4ManagerManagementCommand", 
      "\u670D\u52A1\u9879\u76EE\u7BA1\u7406", _function_14);
    final Procedure1<AppFunction> _function_15 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowMyEngineerProject4EngineerCommand", 
      "\u5DE5\u7A0B\u5E08\u670D\u52A1\u9879\u76EE", _function_15);
    final Procedure1<AppFunction> _function_16 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerProjectPlanManagementCommand", 
      "\u9879\u76EE\u8BA1\u5212", _function_16);
    final Procedure1<AppFunction> _function_17 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowMyEngineerProjectPlanManagementCommand", 
      "\u6211\u7684\u9879\u76EE\u8BA1\u5212", _function_17);
    final Procedure1<AppFunction> _function_18 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowEngineerWorkOrderManagementCommand", 
      "\u6211\u7684\u5DE5\u5355", _function_18);
    final Procedure1<AppFunction> _function_19 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.ShowEngineerWorkOrderManagementCommand", 
      "com.shrcl.engineerprocess.web.CreateEngineerProjectAssignmentSummaryCommand", 
      "\u5C0F\u7ED3", _function_19);
    final Procedure1<AppFunction> _function_20 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowManagerWorkOrderManagementCommand", 
      "\u7BA1\u7406\u5DE5\u5355", _function_20);
    final Procedure1<AppFunction> _function_21 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.ShowManagerWorkOrderManagementCommand", 
      "com.shrcl.engineerprocess.web.FinishWordOrderCommand", 
      "\u5DE5\u5355\u5B8C\u6210", _function_21);
    final Procedure1<AppFunction> _function_22 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.ShowManagerWorkOrderManagementCommand", 
      "com.shrcl.engineerprocess.web.DelWorkOrderCommand", 
      "\u5220\u9664\u5DE5\u5355", _function_22);
    final Procedure1<AppFunction> _function_23 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.ShowManagerWorkOrderManagementCommand", 
      "com.shrcl.engineerprocess.web.UpdateEngineerProjectAssignmentCommand", 
      "\u4FEE\u6539", _function_23);
    final Procedure1<AppFunction> _function_24 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.ShowManagerWorkOrderManagementCommand", 
      "com.shrcl.engineerprocess.web.DeleteEngineerProjectAssignmentCommand", 
      "\u5220\u9664", _function_24);
    final Procedure1<AppFunction> _function_25 = new Procedure1<AppFunction>() {
        public void apply(final AppFunction it) {
        }
      };
    this.appFunctionService.createOrUpdateAppFunction(
      "com.shrcl.engineerprocess.web.engineerprojectmanagement", 
      "com.shrcl.engineerprocess.web.ShowAllEngineerWorkOrderManagementCommand", 
      "\u5168\u90E8\u5DE5\u5355", _function_25);
  }
  
  public void TSCProcessVerifier() {TSCProcessRoleImpl.create(getObjectFactory());
  }
  
  public void EngineerCostEstimationServiceType() {IGenericQuery<EngineerCostEstimation> query=getObjectFactory().createGenericQuery(EngineerCostEstimation.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerCostEstimationImpl as e   where  e.active = 1      ");
    Collection<EngineerCostEstimation> _list = query.list();
    final Procedure1<EngineerCostEstimation> _function = new Procedure1<EngineerCostEstimation>() {
        public void apply(final EngineerCostEstimation it) {
          TSCServiceTypeDefinition _serviceTypes = it.getServiceTypes();
          boolean _equals = Objects.equal(_serviceTypes, null);
          if (_equals) {TSCServiceTypeDefinition tSCServiceTypeDefinition=TSCServiceTypeDefinitionImpl.create(getObjectFactory());
            final Procedure1<TSCServiceTypeDefinition> _function = new Procedure1<TSCServiceTypeDefinition>() {
                public void apply(final TSCServiceTypeDefinition it) {
                  it.init();
                }
              };
            TSCServiceTypeDefinition _doubleArrow = ObjectExtensions.<TSCServiceTypeDefinition>operator_doubleArrow(tSCServiceTypeDefinition, _function);
            it.setServiceTypes(_doubleArrow);
          }
          TSCManCostCalc _manCostCalc = it.getManCostCalc();
          boolean _equals_1 = Objects.equal(_manCostCalc, null);
          if (_equals_1) {TSCManCostCalc tSCManCostCalc=TSCManCostCalcImpl.create(getObjectFactory());
            final Procedure1<TSCManCostCalc> _function_1 = new Procedure1<TSCManCostCalc>() {
                public void apply(final TSCManCostCalc it) {
                  it.init();
                }
              };
            TSCManCostCalc _doubleArrow_1 = ObjectExtensions.<TSCManCostCalc>operator_doubleArrow(tSCManCostCalc, _function_1);
            it.setManCostCalc(_doubleArrow_1);
          }
        }
      };
    IterableExtensions.<EngineerCostEstimation>forEach(_list, _function);
  }
  
  public void TSCPhaseCreate0330() {IGenericQuery<TSCPhase> query=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list = query.list();
    final Function1<TSCPhase,Boolean> _function = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "001");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase1 = IterableExtensions.<TSCPhase>findFirst(_list, _function);
    boolean _notEquals = (!Objects.equal(phase1, null));
    if (_notEquals) {
      phase1.setName("\u4E00: \u5B89\u88C5\u8C03\u8BD5");
    } else {TSCPhase tSCPhase=TSCPhaseImpl.create(getObjectFactory());
      final Procedure1<TSCPhase> _function_1 = new Procedure1<TSCPhase>() {
          public void apply(final TSCPhase it) {
            it.setCodeid("001");
            it.setName("\u4E00: \u5B89\u88C5\u8C03\u8BD5");
          }
        };
      ObjectExtensions.<TSCPhase>operator_doubleArrow(tSCPhase, _function_1);
    }IGenericQuery<TSCPhase> query_1=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list_1 = query_1.list();
    final Function1<TSCPhase,Boolean> _function_2 = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "002");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase2 = IterableExtensions.<TSCPhase>findFirst(_list_1, _function_2);
    boolean _notEquals_1 = (!Objects.equal(phase2, null));
    if (_notEquals_1) {
      phase2.setName("\u4E8C: \u8054\u8C03\u8054\u6D4B");
    } else {TSCPhase tSCPhase_1=TSCPhaseImpl.create(getObjectFactory());
      final Procedure1<TSCPhase> _function_3 = new Procedure1<TSCPhase>() {
          public void apply(final TSCPhase it) {
            it.setCodeid("002");
            it.setName("\u4E8C: \u8054\u8C03\u8054\u6D4B");
          }
        };
      ObjectExtensions.<TSCPhase>operator_doubleArrow(tSCPhase_1, _function_3);
    }IGenericQuery<TSCPhase> query_2=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list_2 = query_2.list();
    final Function1<TSCPhase,Boolean> _function_4 = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "003");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase3 = IterableExtensions.<TSCPhase>findFirst(_list_2, _function_4);
    boolean _notEquals_2 = (!Objects.equal(phase3, null));
    if (_notEquals_2) {
      phase3.setName("\u4E09: \u9879\u76EE\u8BD5\u8FD0\u884C\u53CA\u9A8C\u6536");
    } else {TSCPhase tSCPhase_2=TSCPhaseImpl.create(getObjectFactory());
      final Procedure1<TSCPhase> _function_5 = new Procedure1<TSCPhase>() {
          public void apply(final TSCPhase it) {
            it.setCodeid("003");
            it.setName("\u4E09: \u9879\u76EE\u8BD5\u8FD0\u884C\u53CA\u9A8C\u6536");
          }
        };
      ObjectExtensions.<TSCPhase>operator_doubleArrow(tSCPhase_2, _function_5);
    }IGenericQuery<TSCPhase> query_3=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list_3 = query_3.list();
    final Function1<TSCPhase,Boolean> _function_6 = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "004");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase4 = IterableExtensions.<TSCPhase>findFirst(_list_3, _function_6);
    boolean _notEquals_3 = (!Objects.equal(phase4, null));
    if (_notEquals_3) {
      phase4.setName("\u56DB: \u540E\u7EED\u670D\u52A1");
    } else {TSCPhase tSCPhase_3=TSCPhaseImpl.create(getObjectFactory());
      final Procedure1<TSCPhase> _function_7 = new Procedure1<TSCPhase>() {
          public void apply(final TSCPhase it) {
            it.setCodeid("004");
            it.setName("\u56DB: \u540E\u7EED\u670D\u52A1");
          }
        };
      ObjectExtensions.<TSCPhase>operator_doubleArrow(tSCPhase_3, _function_7);
    }
  }
  
  public void EngineerLevelCreate() {IGenericQuery<EngineerLevel> query=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list = query.list();
    final Function1<EngineerLevel,Boolean> _function = new Function1<EngineerLevel,Boolean>() {
        public Boolean apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          boolean _equals = Objects.equal(_levelId, "001");
          return Boolean.valueOf(_equals);
        }
      };
    final EngineerLevel level1 = IterableExtensions.<EngineerLevel>findFirst(_list, _function);
    boolean _notEquals = (!Objects.equal(level1, null));
    if (_notEquals) {
      level1.setName("\u5DE5\u7A0B\u5E08");
    } else {EngineerLevel engineerLevel=EngineerLevelImpl.create(getObjectFactory());
      final Procedure1<EngineerLevel> _function_1 = new Procedure1<EngineerLevel>() {
          public void apply(final EngineerLevel it) {
            it.setLevelId("001");
            it.setName("\u5DE5\u7A0B\u5E08");
          }
        };
      ObjectExtensions.<EngineerLevel>operator_doubleArrow(engineerLevel, _function_1);
    }IGenericQuery<EngineerLevel> query_1=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_1 = query_1.list();
    final Function1<EngineerLevel,Boolean> _function_2 = new Function1<EngineerLevel,Boolean>() {
        public Boolean apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          boolean _equals = Objects.equal(_levelId, "002");
          return Boolean.valueOf(_equals);
        }
      };
    final EngineerLevel level2 = IterableExtensions.<EngineerLevel>findFirst(_list_1, _function_2);
    boolean _notEquals_1 = (!Objects.equal(level2, null));
    if (_notEquals_1) {
      level2.setName("\u8D44\u6DF1\u5DE5\u7A0B\u5E08");
    } else {EngineerLevel engineerLevel_1=EngineerLevelImpl.create(getObjectFactory());
      final Procedure1<EngineerLevel> _function_3 = new Procedure1<EngineerLevel>() {
          public void apply(final EngineerLevel it) {
            it.setLevelId("002");
            it.setName("\u8D44\u6DF1\u5DE5\u7A0B\u5E08");
          }
        };
      ObjectExtensions.<EngineerLevel>operator_doubleArrow(engineerLevel_1, _function_3);
    }IGenericQuery<EngineerLevel> query_2=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_2 = query_2.list();
    final Function1<EngineerLevel,Boolean> _function_4 = new Function1<EngineerLevel,Boolean>() {
        public Boolean apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          boolean _equals = Objects.equal(_levelId, "003");
          return Boolean.valueOf(_equals);
        }
      };
    final EngineerLevel level3 = IterableExtensions.<EngineerLevel>findFirst(_list_2, _function_4);
    boolean _notEquals_2 = (!Objects.equal(level3, null));
    if (_notEquals_2) {
      level3.setName("\u9AD8\u7EA7\u5DE5\u7A0B\u5E08");
    } else {EngineerLevel engineerLevel_2=EngineerLevelImpl.create(getObjectFactory());
      final Procedure1<EngineerLevel> _function_5 = new Procedure1<EngineerLevel>() {
          public void apply(final EngineerLevel it) {
            it.setLevelId("003");
            it.setName("\u9AD8\u7EA7\u5DE5\u7A0B\u5E08");
          }
        };
      ObjectExtensions.<EngineerLevel>operator_doubleArrow(engineerLevel_2, _function_5);
    }IGenericQuery<EngineerLevel> query_3=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_3 = query_3.list();
    final Function1<EngineerLevel,Boolean> _function_6 = new Function1<EngineerLevel,Boolean>() {
        public Boolean apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          boolean _equals = Objects.equal(_levelId, "004");
          return Boolean.valueOf(_equals);
        }
      };
    final EngineerLevel level4 = IterableExtensions.<EngineerLevel>findFirst(_list_3, _function_6);
    boolean _notEquals_3 = (!Objects.equal(level4, null));
    if (_notEquals_3) {
      level4.setName("\u4E3B\u7BA1\u9AD8\u7EA7\u5DE5\u7A0B\u5E08");
    } else {EngineerLevel engineerLevel_3=EngineerLevelImpl.create(getObjectFactory());
      final Procedure1<EngineerLevel> _function_7 = new Procedure1<EngineerLevel>() {
          public void apply(final EngineerLevel it) {
            it.setLevelId("004");
            it.setName("\u4E3B\u7BA1\u9AD8\u7EA7\u5DE5\u7A0B\u5E08");
          }
        };
      ObjectExtensions.<EngineerLevel>operator_doubleArrow(engineerLevel_3, _function_7);
    }IGenericQuery<EngineerLevel> query_4=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_4 = query_4.list();
    final Function1<EngineerLevel,Boolean> _function_8 = new Function1<EngineerLevel,Boolean>() {
        public Boolean apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          boolean _equals = Objects.equal(_levelId, "005");
          return Boolean.valueOf(_equals);
        }
      };
    final EngineerLevel level5 = IterableExtensions.<EngineerLevel>findFirst(_list_4, _function_8);
    boolean _notEquals_4 = (!Objects.equal(level5, null));
    if (_notEquals_4) {
      level5.setName("\u9879\u76EE\u7ECF\u7406");
    } else {EngineerLevel engineerLevel_4=EngineerLevelImpl.create(getObjectFactory());
      final Procedure1<EngineerLevel> _function_9 = new Procedure1<EngineerLevel>() {
          public void apply(final EngineerLevel it) {
            it.setLevelId("005");
            it.setName("\u9879\u76EE\u7ECF\u7406");
          }
        };
      ObjectExtensions.<EngineerLevel>operator_doubleArrow(engineerLevel_4, _function_9);
    }
  }
  
  public void TSCWorkLoadTypeCreate() {IGenericQuery<TSCPhase> query=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list = query.list();
    final Function1<TSCPhase,Boolean> _function = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "001");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase1 = IterableExtensions.<TSCPhase>findFirst(_list, _function);IGenericQuery<TSCPhase> query_1=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list_1 = query_1.list();
    final Function1<TSCPhase,Boolean> _function_1 = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "002");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase2 = IterableExtensions.<TSCPhase>findFirst(_list_1, _function_1);IGenericQuery<TSCPhase> query_2=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list_2 = query_2.list();
    final Function1<TSCPhase,Boolean> _function_2 = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "003");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase3 = IterableExtensions.<TSCPhase>findFirst(_list_2, _function_2);IGenericQuery<TSCPhase> query_3=getObjectFactory().createGenericQuery(TSCPhase.class,"select e from com.shrcl.engineerprocess.domain.impl.TSCPhaseImpl as e   where  e.active = 1      ");
    Collection<TSCPhase> _list_3 = query_3.list();
    final Function1<TSCPhase,Boolean> _function_3 = new Function1<TSCPhase,Boolean>() {
        public Boolean apply(final TSCPhase it) {
          String _codeid = it.getCodeid();
          boolean _equals = Objects.equal(_codeid, "004");
          return Boolean.valueOf(_equals);
        }
      };
    final TSCPhase phase4 = IterableExtensions.<TSCPhase>findFirst(_list_3, _function_3);IGenericQuery<EngineerLevel> query_4=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_4 = query_4.list();
    final Function1<EngineerLevel,String> _function_4 = new Function1<EngineerLevel,String>() {
        public String apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          return _levelId;
        }
      };
    List<EngineerLevel> _sortBy = IterableExtensions.<EngineerLevel, String>sortBy(_list_4, _function_4);
    final Procedure1<EngineerLevel> _function_5 = new Procedure1<EngineerLevel>() {
        public void apply(final EngineerLevel l) {
          final Procedure1<TSCWorkLoadType> _function = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u6587\u6863\u51C6\u5907");
                it.setPhase(phase1);
                it.setEngineerLevel(l);
                String _codeid = phase1.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "01");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function);
          final Procedure1<TSCWorkLoadType> _function_1 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u786C\u4EF6\u5B89\u88C5");
                it.setPhase(phase1);
                it.setEngineerLevel(l);
                String _codeid = phase1.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "02");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_1);
          final Procedure1<TSCWorkLoadType> _function_2 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u8F6F\u4EF6\u53CA\u914D\u7F6E\u521D\u59CB\u5316");
                it.setPhase(phase1);
                it.setEngineerLevel(l);
                String _codeid = phase1.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "03");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_2);
        }
      };
    IterableExtensions.<EngineerLevel>forEach(_sortBy, _function_5);IGenericQuery<EngineerLevel> query_5=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_5 = query_5.list();
    final Function1<EngineerLevel,String> _function_6 = new Function1<EngineerLevel,String>() {
        public String apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          return _levelId;
        }
      };
    List<EngineerLevel> _sortBy_1 = IterableExtensions.<EngineerLevel, String>sortBy(_list_5, _function_6);
    final Procedure1<EngineerLevel> _function_7 = new Procedure1<EngineerLevel>() {
        public void apply(final EngineerLevel l) {
          final Procedure1<TSCWorkLoadType> _function = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u6587\u6863\u51C6\u5907");
                it.setPhase(phase2);
                it.setEngineerLevel(l);
                String _codeid = phase2.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "01");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function);
          final Procedure1<TSCWorkLoadType> _function_1 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u4E0E\u73B0\u7F51\u8054\u8C03\u8054\u6D4B");
                it.setPhase(phase2);
                it.setEngineerLevel(l);
                String _codeid = phase2.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "02");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_1);
          final Procedure1<TSCWorkLoadType> _function_2 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u6545\u969C\u6392\u9519");
                it.setPhase(phase2);
                it.setEngineerLevel(l);
                String _codeid = phase2.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "03");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_2);
        }
      };
    IterableExtensions.<EngineerLevel>forEach(_sortBy_1, _function_7);IGenericQuery<EngineerLevel> query_6=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_6 = query_6.list();
    final Function1<EngineerLevel,String> _function_8 = new Function1<EngineerLevel,String>() {
        public String apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          return _levelId;
        }
      };
    List<EngineerLevel> _sortBy_2 = IterableExtensions.<EngineerLevel, String>sortBy(_list_6, _function_8);
    final Procedure1<EngineerLevel> _function_9 = new Procedure1<EngineerLevel>() {
        public void apply(final EngineerLevel l) {
          final Procedure1<TSCWorkLoadType> _function = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u6587\u6863\u51C6\u5907");
                it.setPhase(phase3);
                it.setEngineerLevel(l);
                String _codeid = phase3.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "01");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function);
          final Procedure1<TSCWorkLoadType> _function_1 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u7535\u8BDD\u652F\u6301");
                it.setPhase(phase3);
                it.setEngineerLevel(l);
                String _codeid = phase3.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "02");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_1);
          final Procedure1<TSCWorkLoadType> _function_2 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u73B0\u573A\u652F\u6301");
                it.setPhase(phase3);
                it.setEngineerLevel(l);
                String _codeid = phase3.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "03");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_2);
        }
      };
    IterableExtensions.<EngineerLevel>forEach(_sortBy_2, _function_9);IGenericQuery<EngineerLevel> query_7=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list_7 = query_7.list();
    final Function1<EngineerLevel,String> _function_10 = new Function1<EngineerLevel,String>() {
        public String apply(final EngineerLevel it) {
          String _levelId = it.getLevelId();
          return _levelId;
        }
      };
    List<EngineerLevel> _sortBy_3 = IterableExtensions.<EngineerLevel, String>sortBy(_list_7, _function_10);
    final Procedure1<EngineerLevel> _function_11 = new Procedure1<EngineerLevel>() {
        public void apply(final EngineerLevel l) {
          final Procedure1<TSCWorkLoadType> _function = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u540E\u7EED\u670D\u52A1(\u6545\u969C\u5E94\u6025)");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "01");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function);
          final Procedure1<TSCWorkLoadType> _function_1 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u540E\u7EED\u670D\u52A1(\u91CD\u5927\u8282\u65E5\u503C\u73ED)");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "02");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_1);
          final Procedure1<TSCWorkLoadType> _function_2 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u5DE1\u68C0");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "03");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_2);
          final Procedure1<TSCWorkLoadType> _function_3 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("7X24X2 \u6545\u969C\u670D\u52A1\u54CD\u5E94");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "04");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_3);
          final Procedure1<TSCWorkLoadType> _function_4 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("7X24X4 \u6545\u969C\u670D\u52A1\u73B0\u573A\u54CD\u5E94");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "05");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_4);
          final Procedure1<TSCWorkLoadType> _function_5 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("5X8 \u6545\u969C\u670D\u52A1\u54CD\u5E94");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "06");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_5);
          final Procedure1<TSCWorkLoadType> _function_6 = new Procedure1<TSCWorkLoadType>() {
              public void apply(final TSCWorkLoadType it) {
                it.setName("\u53D8\u66F4\u652F\u6301");
                it.setPhase(phase4);
                it.setEngineerLevel(l);
                String _codeid = phase4.getCodeid();
                String _levelId = l.getLevelId();
                String _plus = (_codeid + _levelId);
                String _plus_1 = (_plus + "07");
                it.setCodeid(_plus_1);
              }
            };
          EngineerInitialize.this.workLoadTypeDAO.create(_function_6);
        }
      };
    IterableExtensions.<EngineerLevel>forEach(_sortBy_3, _function_11);
  }
  
  public void createTSCServiceType() {TSCServiceTypeCategory tSCServiceTypeCategory=TSCServiceTypeCategoryImpl.create(getObjectFactory());
    final Procedure1<TSCServiceTypeCategory> _function = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory it) {
          it.setCodeid("001");
          it.setName("1. \u5B9E\u65BD\u670D\u52A1");
        }
      };
    TSCServiceTypeCategory _doubleArrow = ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(tSCServiceTypeCategory, _function);
    final Procedure1<TSCServiceTypeCategory> _function_1 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory cate) {TSCServiceType tSCServiceType=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "001");
                it.setTypeid(_plus);
                it.setName("1.1 \u5B9E\u65BD\u73B0\u573A\u52D8\u5BDF");
              }
            };
          TSCServiceType _doubleArrow = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType, _function);
          final Procedure1<TSCServiceType> _function_1 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow, _function_1);TSCServiceType tSCServiceType_1=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_2 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "002");
                it.setTypeid(_plus);
                it.setName("1.2 \u8BBE\u5907\u5230\u8D27\u9A8C\u6536");
              }
            };
          TSCServiceType _doubleArrow_1 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_1, _function_2);
          final Procedure1<TSCServiceType> _function_3 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_1, _function_3);TSCServiceType tSCServiceType_2=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_4 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "003");
                it.setTypeid(_plus);
                it.setName("1.3 \u8BBE\u5907\u52A0\u7535\u6D4B\u8BD5");
              }
            };
          TSCServiceType _doubleArrow_2 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_2, _function_4);
          final Procedure1<TSCServiceType> _function_5 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_2, _function_5);TSCServiceType tSCServiceType_3=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_6 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "004");
                it.setTypeid(_plus);
                it.setName("1.4 \u8BBE\u5907\u4E0A\u67B6\u53CA\u6807\u7B7E");
              }
            };
          TSCServiceType _doubleArrow_3 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_3, _function_6);
          final Procedure1<TSCServiceType> _function_7 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_3, _function_7);TSCServiceType tSCServiceType_4=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_8 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "005");
                it.setTypeid(_plus);
                it.setName("1.5 \u8BBE\u5907\u914D\u7F6E\u53CA\u8C03\u8BD5");
              }
            };
          TSCServiceType _doubleArrow_4 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_4, _function_8);
          final Procedure1<TSCServiceType> _function_9 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_4, _function_9);TSCServiceType tSCServiceType_5=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_10 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "006");
                it.setTypeid(_plus);
                it.setName("1.6 \u8BBE\u5907\u4E92\u8FDE\u8DF3\u7EBF\u53CA\u6807\u7B7E");
              }
            };
          TSCServiceType _doubleArrow_5 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_5, _function_10);
          final Procedure1<TSCServiceType> _function_11 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_5, _function_11);TSCServiceType tSCServiceType_6=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_12 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "007");
                it.setTypeid(_plus);
                it.setName("1.7 \u7CFB\u7EDF\u6574\u4F53\u8C03\u8BD5");
              }
            };
          TSCServiceType _doubleArrow_6 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_6, _function_12);
          final Procedure1<TSCServiceType> _function_13 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_6, _function_13);TSCServiceType tSCServiceType_7=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_14 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "008");
                it.setTypeid(_plus);
                it.setName("1.8 \u7CFB\u7EDF\u6D4B\u8BD5");
              }
            };
          TSCServiceType _doubleArrow_7 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_7, _function_14);
          final Procedure1<TSCServiceType> _function_15 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_7, _function_15);TSCServiceType tSCServiceType_8=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_16 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "009");
                it.setTypeid(_plus);
                it.setName("1.9 \u670D\u52A1\u5668\u63A5\u5165\u8DF3\u7EBF\uFF08\u4EA4\u6362\u673A\u7AEF\uFF09\u53CA\u6807\u7B7E");
              }
            };
          TSCServiceType _doubleArrow_8 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_8, _function_16);
          final Procedure1<TSCServiceType> _function_17 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_8, _function_17);TSCServiceType tSCServiceType_9=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_18 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "010");
                it.setTypeid(_plus);
                it.setName("1.10 \u670D\u52A1\u5668\u63A5\u5165\u8DF3\u7EBF\uFF08\u670D\u52A1\u5668\u7AEF\uFF09\u53CA\u6807\u7B7E");
              }
            };
          TSCServiceType _doubleArrow_9 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_9, _function_18);
          final Procedure1<TSCServiceType> _function_19 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_9, _function_19);TSCServiceType tSCServiceType_10=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_20 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "011");
                it.setTypeid(_plus);
                it.setName("1.11 \u65E0\u7EBFAP\u540A\u88C5\uFF08\u4E00\u822C\u9AD8\u5EA6\u548C\u540A\u9876\uFF09");
              }
            };
          TSCServiceType _doubleArrow_10 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_10, _function_20);
          final Procedure1<TSCServiceType> _function_21 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_10, _function_21);TSCServiceType tSCServiceType_11=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_22 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "012");
                it.setTypeid(_plus);
                it.setName("1.12 \u65E0\u7EBFAP\u540A\u88C5\uFF08\u7279\u6B8A\u9AD8\u5EA6\u548C\u540A\u9876\uFF09");
              }
            };
          TSCServiceType _doubleArrow_11 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_11, _function_22);
          final Procedure1<TSCServiceType> _function_23 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_11, _function_23);TSCServiceType tSCServiceType_12=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_24 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "013");
                it.setTypeid(_plus);
                it.setName("1.13 \u684C\u9762\u8BBE\u5907\u5B89\u88C5\uFF08IP\u8BDD\u673A\u7B49");
              }
            };
          TSCServiceType _doubleArrow_12 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_12, _function_24);
          final Procedure1<TSCServiceType> _function_25 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_12, _function_25);TSCServiceType tSCServiceType_13=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_26 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "014");
                it.setTypeid(_plus);
                it.setName("1.14 \u5BA2\u6237\u7EF4\u62A4\u64CD\u4F5C\u57F9\u8BAD");
              }
            };
          TSCServiceType _doubleArrow_13 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_13, _function_26);
          final Procedure1<TSCServiceType> _function_27 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_13, _function_27);
        }
      };
    ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(_doubleArrow, _function_1);TSCServiceTypeCategory tSCServiceTypeCategory_1=TSCServiceTypeCategoryImpl.create(getObjectFactory());
    final Procedure1<TSCServiceTypeCategory> _function_2 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory it) {
          it.setCodeid("002");
          it.setName("2. \u9879\u76EE\u6587\u6863");
        }
      };
    TSCServiceTypeCategory _doubleArrow_1 = ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(tSCServiceTypeCategory_1, _function_2);
    final Procedure1<TSCServiceTypeCategory> _function_3 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory cate) {TSCServiceType tSCServiceType=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "001");
                it.setTypeid(_plus);
                it.setName("2.1 \u5B9E\u65BD\u65B9\u6848");
              }
            };
          TSCServiceType _doubleArrow = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType, _function);
          final Procedure1<TSCServiceType> _function_1 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow, _function_1);TSCServiceType tSCServiceType_1=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_2 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "002");
                it.setTypeid(_plus);
                it.setName("2.2 \u6D4B\u8BD5\u62A5\u544A");
              }
            };
          TSCServiceType _doubleArrow_1 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_1, _function_2);
          final Procedure1<TSCServiceType> _function_3 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_1, _function_3);TSCServiceType tSCServiceType_2=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_4 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "003");
                it.setTypeid(_plus);
                it.setName("2.3 \u5B89\u88C5\u62A5\u544A");
              }
            };
          TSCServiceType _doubleArrow_2 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_2, _function_4);
          final Procedure1<TSCServiceType> _function_5 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_2, _function_5);TSCServiceType tSCServiceType_3=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_6 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "004");
                it.setTypeid(_plus);
                it.setName("2.4 \u9879\u76EE\u9A8C\u6536\u62A5\u544A");
              }
            };
          TSCServiceType _doubleArrow_3 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_3, _function_6);
          final Procedure1<TSCServiceType> _function_7 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_3, _function_7);
        }
      };
    ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(_doubleArrow_1, _function_3);TSCServiceTypeCategory tSCServiceTypeCategory_2=TSCServiceTypeCategoryImpl.create(getObjectFactory());
    final Procedure1<TSCServiceTypeCategory> _function_4 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory it) {
          it.setCodeid("003");
          it.setName("3. \u65E5\u5E38\u8FD0\u7EF4\u670D\u52A1");
        }
      };
    TSCServiceTypeCategory _doubleArrow_2 = ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(tSCServiceTypeCategory_2, _function_4);
    final Procedure1<TSCServiceTypeCategory> _function_5 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory cate) {TSCServiceType tSCServiceType=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "001");
                it.setTypeid(_plus);
                it.setName("3.1 \u7535\u8BDD\u652F\u6301\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType, _function);
          final Procedure1<TSCServiceType> _function_1 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7*24");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("5*8");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow, _function_1);TSCServiceType tSCServiceType_1=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_2 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "002");
                it.setTypeid(_plus);
                it.setName("3.2 \u8FDC\u7A0B\u6545\u969C\u8BCA\u65AD\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_1 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_1, _function_2);
          final Procedure1<TSCServiceType> _function_3 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7*24");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("5*8");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_1, _function_3);TSCServiceType tSCServiceType_2=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_4 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "003");
                it.setTypeid(_plus);
                it.setName("3.3 \u73B0\u573A\u6545\u969C\u89E3\u51B3\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_2 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_2, _function_4);
          final Procedure1<TSCServiceType> _function_5 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("2\u5C0F\u65F6");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("4\u5C0F\u65F6");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_2, _function_5);TSCServiceType tSCServiceType_3=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_6 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "004");
                it.setTypeid(_plus);
                it.setName("3.4 \u7D27\u6025\u73B0\u573A\u652F\u6301\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_3 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_3, _function_6);
          final Procedure1<TSCServiceType> _function_7 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("2\u5C0F\u65F6");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("4\u5C0F\u65F6");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_3, _function_7);TSCServiceType tSCServiceType_4=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_8 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "005");
                it.setTypeid(_plus);
                it.setName("3.5 \u7D27\u6025\u5907\u4EF6\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_4 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_4, _function_8);
          final Procedure1<TSCServiceType> _function_9 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7*24*4");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("5*8*NBD");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_4, _function_9);TSCServiceType tSCServiceType_5=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_10 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "006");
                it.setTypeid(_plus);
                it.setName("3.6 \u5B9A\u671F\u5DE1\u68C0\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_5 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_5, _function_10);
          final Procedure1<TSCServiceType> _function_11 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("30\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("90\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
                final Procedure1<TSCServiceTypeOptionItem> _function_3 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("180\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_3);
                final Procedure1<TSCServiceTypeOptionItem> _function_4 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("360\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_4);
                final Procedure1<TSCServiceTypeOptionItem> _function_5 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_5);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_5, _function_11);TSCServiceType tSCServiceType_6=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_12 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "007");
                it.setTypeid(_plus);
                it.setName("3.7 \u9A7B\u573A\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_6 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_6, _function_12);
          final Procedure1<TSCServiceType> _function_13 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("1\u4EBA");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("2\u4EBA");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("3\u4EBA");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
                final Procedure1<TSCServiceTypeOptionItem> _function_3 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("4\u4EBA");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_3);
                final Procedure1<TSCServiceTypeOptionItem> _function_4 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_4);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_6, _function_13);TSCServiceType tSCServiceType_7=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_14 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "008");
                it.setTypeid(_plus);
                it.setName("3.8 \u7CFB\u7EDF\u5065\u5EB7\u6027\u8BCA\u65AD\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_7 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_7, _function_14);
          final Procedure1<TSCServiceType> _function_15 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("30\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("90\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
                final Procedure1<TSCServiceTypeOptionItem> _function_3 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("180\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_3);
                final Procedure1<TSCServiceTypeOptionItem> _function_4 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("360\u5929");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_4);
                final Procedure1<TSCServiceTypeOptionItem> _function_5 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_5);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_7, _function_15);TSCServiceType tSCServiceType_8=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_16 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "009");
                it.setTypeid(_plus);
                it.setName("3.9 \u9879\u76EE\u6280\u672F\u54A8\u8BE2\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_8 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_8, _function_16);
          final Procedure1<TSCServiceType> _function_17 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u6709");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_8, _function_17);
        }
      };
    ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(_doubleArrow_2, _function_5);TSCServiceTypeCategory tSCServiceTypeCategory_3=TSCServiceTypeCategoryImpl.create(getObjectFactory());
    final Procedure1<TSCServiceTypeCategory> _function_6 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory it) {
          it.setCodeid("004");
          it.setName("4. \u8BBE\u5907\u4FDD\u4FEE\u670D\u52A1");
        }
      };
    TSCServiceTypeCategory _doubleArrow_3 = ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(tSCServiceTypeCategory_3, _function_6);
    final Procedure1<TSCServiceTypeCategory> _function_7 = new Procedure1<TSCServiceTypeCategory>() {
        public void apply(final TSCServiceTypeCategory cate) {TSCServiceType tSCServiceType=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "001");
                it.setTypeid(_plus);
                it.setName("4.1 \u539F\u5382\u8BBE\u5907\u4FDD\u4FEE\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType, _function);
          final Procedure1<TSCServiceType> _function_1 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7*24*4");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("5*8*NBD");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow, _function_1);TSCServiceType tSCServiceType_1=TSCServiceTypeImpl.create(getObjectFactory());
          final Procedure1<TSCServiceType> _function_2 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                it.setCategory(cate);
                String _codeid = cate.getCodeid();
                String _plus = (_codeid + "002");
                it.setTypeid(_plus);
                it.setName("4.2 \u73B0\u573ARMA\u8BBE\u5907\u66F4\u6362\u670D\u52A1");
              }
            };
          TSCServiceType _doubleArrow_1 = ObjectExtensions.<TSCServiceType>operator_doubleArrow(tSCServiceType_1, _function_2);
          final Procedure1<TSCServiceType> _function_3 = new Procedure1<TSCServiceType>() {
              public void apply(final TSCServiceType it) {
                final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("7*24*4");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function);
                final Procedure1<TSCServiceTypeOptionItem> _function_1 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("5*8*NBD");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_1);
                final Procedure1<TSCServiceTypeOptionItem> _function_2 = new Procedure1<TSCServiceTypeOptionItem>() {
                    public void apply(final TSCServiceTypeOptionItem it) {
                      it.setName("\u65E0");
                    }
                  };
                EngineerInitialize.this.serviceTypeOptionItemDAO.create(it, _function_2);
              }
            };
          ObjectExtensions.<TSCServiceType>operator_doubleArrow(_doubleArrow_1, _function_3);
        }
      };
    ObjectExtensions.<TSCServiceTypeCategory>operator_doubleArrow(_doubleArrow_3, _function_7);
  }
  
  public void initEngineerLevelSalary() {IGenericQuery<EngineerLevel> query=getObjectFactory().createGenericQuery(EngineerLevel.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerLevelImpl as e   where  e.active = 1      ");
    Collection<EngineerLevel> _list = query.list();
    final Procedure1<EngineerLevel> _function = new Procedure1<EngineerLevel>() {
        public void apply(final EngineerLevel it) {
          EngineerInitialize.this.engineerLevelSalaryDAO.getEngineerLevelSalaryByLevel(it);
        }
      };
    IterableExtensions.<EngineerLevel>forEach(_list, _function);
  }
  
  public void initCorpWechatUser() {IGenericQuery<Engineer> query=getObjectFactory().createGenericQuery(Engineer.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerImpl as e   where  e.active = 1      ");
    Collection<Engineer> _list = query.list();
    final Procedure1<Engineer> _function = new Procedure1<Engineer>() {
        public void apply(final Engineer eng) {
          CorpWeChatUser _wechatUser = eng.getWechatUser();
          boolean _equals = Objects.equal(_wechatUser, null);
          if (_equals) {
            final Procedure1<CorpWeChatUser> _function = new Procedure1<CorpWeChatUser>() {
                public void apply(final CorpWeChatUser it) {
                  it.setEngineer(eng);
                }
              };
            EngineerInitialize.this.corpWeChatUserDAO.create(_function);
          }
        }
      };
    IterableExtensions.<Engineer>forEach(_list, _function);
  }
  
  public void EngineerProcessSequenceConfigCreate() {IGenericQuery<EngineerSeqConfig> query=getObjectFactory().createGenericQuery(EngineerSeqConfig.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerSeqConfigImpl as e   where  e.active = 1      ");
    final EngineerSeqConfig r = query.uniqueResult();
    boolean _equals = Objects.equal(r, null);
    if (_equals) {EngineerSeqConfigImpl.create(getObjectFactory());
    }
  }
  
  public void EngineerProjectAssignmentSummary() {IGenericQuery<EngineerProjectAssignment> query=getObjectFactory().createGenericQuery(EngineerProjectAssignment.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerProjectAssignmentImpl as e   where  e.active = 1      ");
    final Collection<EngineerProjectAssignment> r = query.list();
    final Procedure1<EngineerProjectAssignment> _function = new Procedure1<EngineerProjectAssignment>() {
        public void apply(final EngineerProjectAssignment it) {
          WorkSummary _dailySummary = it.getDailySummary();
          boolean _equals = Objects.equal(_dailySummary, null);
          if (_equals) {WorkSummary workSummary=WorkSummaryImpl.create(getObjectFactory());
            it.setDailySummary(workSummary);
          }
        }
      };
    IterableExtensions.<EngineerProjectAssignment>forEach(r, _function);
  }
  
  public void emailReceiver() {IGenericQuery<Engineer> query=getObjectFactory().createGenericQuery(Engineer.class,"select e from com.shrcl.engineerprocess.domain.impl.EngineerImpl as e   where  e.active = 1      ");
    final Collection<Engineer> r = query.list();
    final Procedure1<Engineer> _function = new Procedure1<Engineer>() {
        public void apply(final Engineer eng) {
          IGenericQuery<EngineerNotifyReceiver> query=getObjectFactory().createGenericQuery(EngineerNotifyReceiver.class,"select er from com.shrcl.engineerprocess.domain.impl.EngineerNotifyReceiverImpl as er   where ((er.engineer) = (:eng)) and  er.active = 1      ").setParameter("eng",eng);
          final EngineerNotifyReceiver ercv = query.uniqueResult();
          boolean _equals = Objects.equal(ercv, null);
          if (_equals) {EngineerNotifyReceiver engineerNotifyReceiver=EngineerNotifyReceiverImpl.create(getObjectFactory());
            final Procedure1<EngineerNotifyReceiver> _function = new Procedure1<EngineerNotifyReceiver>() {
                public void apply(final EngineerNotifyReceiver it) {
                  it.setEngineer(eng);
                }
              };
            ObjectExtensions.<EngineerNotifyReceiver>operator_doubleArrow(engineerNotifyReceiver, _function);
          }
        }
      };
    IterableExtensions.<Engineer>forEach(r, _function);
  }
  
  public void NotificationTypeUpdate() {IGenericQuery<Notification> query=getObjectFactory().createGenericQuery(Notification.class,"select e from com.shrcl.engineerprocess.domain.impl.NotificationImpl as e   where  e.active = 1      ");
    Collection<Notification> _list = query.list();
    final Procedure1<Notification> _function = new Procedure1<Notification>() {
        public void apply(final Notification it) {
          it.init();
        }
      };
    IterableExtensions.<Notification>forEach(_list, _function);
  }
  
  public void RCProjectStatusUpdate() {IGenericQuery<RCProject> query=getObjectFactory().createGenericQuery(RCProject.class,"select e from com.shrct.businessprocess.project.impl.RCProjectImpl as e   where  e.active = 1      ");
    Collection<RCProject> _list = query.list();
    final Function1<RCProject,Boolean> _function = new Function1<RCProject,Boolean>() {
        public Boolean apply(final RCProject it) {
          Boolean _isConnected = it.getIsConnected();
          boolean _equals = Objects.equal(_isConnected, null);
          return Boolean.valueOf(_equals);
        }
      };
    Iterable<RCProject> _filter = IterableExtensions.<RCProject>filter(_list, _function);
    final Procedure1<RCProject> _function_1 = new Procedure1<RCProject>() {
        public void apply(final RCProject it) {
          it.setIsConnected(Boolean.valueOf(false));
        }
      };
    IterableExtensions.<RCProject>forEach(_filter, _function_1);IGenericQuery<EngineerCostEstimation> query_1=getObjectFactory().createGenericQuery(EngineerCostEstimation.class,"select ee from com.shrcl.engineerprocess.domain.impl.EngineerCostEstimationImpl as ee   where  ee.active = 1      ");
    Collection<EngineerCostEstimation> _list_1 = query_1.list();
    final Function1<EngineerCostEstimation,Boolean> _function_2 = new Function1<EngineerCostEstimation,Boolean>() {
        public Boolean apply(final EngineerCostEstimation it) {
          RCProject _project = it.getProject();
          boolean _notEquals = (!Objects.equal(_project, null));
          return Boolean.valueOf(_notEquals);
        }
      };
    Iterable<EngineerCostEstimation> _filter_1 = IterableExtensions.<EngineerCostEstimation>filter(_list_1, _function_2);
    final Procedure1<EngineerCostEstimation> _function_3 = new Procedure1<EngineerCostEstimation>() {
        public void apply(final EngineerCostEstimation it) {
          RCProject _project = it.getProject();
          _project.setIsConnected(Boolean.valueOf(true));
        }
      };
    IterableExtensions.<EngineerCostEstimation>forEach(_filter_1, _function_3);
  }
  
  @Autowired
  private UpdateServie updateService;
  
  public void doUpgrade() {
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "EngineerrFunction0419b")) {
    	EngineerrFunction0419b();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "EngineerrFunction0419b");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "TSCProcessVerifier")) {
    	TSCProcessVerifier();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "TSCProcessVerifier");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "EngineerCostEstimationServiceType")) {
    	EngineerCostEstimationServiceType();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "EngineerCostEstimationServiceType");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "TSCPhaseCreate0330")) {
    	TSCPhaseCreate0330();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "TSCPhaseCreate0330");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "EngineerLevelCreate")) {
    	EngineerLevelCreate();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "EngineerLevelCreate");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "TSCWorkLoadTypeCreate")) {
    	TSCWorkLoadTypeCreate();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "TSCWorkLoadTypeCreate");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "createTSCServiceType")) {
    	createTSCServiceType();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "createTSCServiceType");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "initEngineerLevelSalary")) {
    	initEngineerLevelSalary();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "initEngineerLevelSalary");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "initCorpWechatUser")) {
    	initCorpWechatUser();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "initCorpWechatUser");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "EngineerProcessSequenceConfigCreate")) {
    	EngineerProcessSequenceConfigCreate();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "EngineerProcessSequenceConfigCreate");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "EngineerProjectAssignmentSummary")) {
    	EngineerProjectAssignmentSummary();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "EngineerProjectAssignmentSummary");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "emailReceiver")) {
    	emailReceiver();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "emailReceiver");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "NotificationTypeUpdate")) {
    	NotificationTypeUpdate();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "NotificationTypeUpdate");
    }
    if (updateService.canPerformUpdate("EngineerInitialize", "V_0_2", "RCProjectStatusUpdate")) {
    	RCProjectStatusUpdate();
    	updateService.updaterCommited("EngineerInitialize", "V_0_2", "RCProjectStatusUpdate");
    }
    
  }
}
